package com.lwz.chain.handlers;

import com.lwz.chain.Handler;

public class DeptHandler extends Handler {
	
	public DeptHandler() {
	}

	public DeptHandler(Handler nextHandler) {
		super(nextHandler);
	}

	@Override
	public void requestSuccessor(String username, int money) {
		if(300<=money&&money<500){
			System.out.println("部门经理处理");
		}else{
			nextHandler.requestSuccessor(username,money);
		}
	}

	

}
